package com.czy.seed.mvc.home.service;

import com.czy.seed.mvc.base.service.BaseService;
import com.czy.seed.mvc.home.entity.PurchaseDetailedList;
import com.czy.seed.mvc.home.entity.PurchaseOrderDetailVo;
import com.czy.seed.mvc.home.entity.PurchaseOrders;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface PurchaseOrdersService extends BaseService<PurchaseOrders> {
    List<PurchaseOrders> selectpurchaseOrdersByCreateUser(String type, long c_id);

    List<PurchaseOrders> selectpurchaseOrdersByCreateUser_(int type, Long userId, String types);
    List<PurchaseOrders> selectMemorandInUniting(Long merchantId, Long userId);
    Map<String, Object> establish(HttpServletRequest request);

    Map<String, String> toPassDetailByParentId_impl(HttpServletRequest request);

    Map<String, String> deletePurchaseOrdersById_impl(HttpServletRequest request);

    Map<String, String> updatePurchaseOrdersById_impl(HttpServletRequest request);

    Map<String, String> updatePurchaseOrdersById4all_impl(HttpServletRequest request);

    Map<String, String> updateDetailtype_impl(HttpServletRequest request);

    Map<String, String> updateDetailById4type_impl(String type,PurchaseDetailedList purchaseDetailedList);

    Map<String, String> updateDetailById_impl(HttpServletRequest request);

    Map<String, String> deleteDetailById_impl(HttpServletRequest request);

    Map<String, Object> addDetailByParentId_impl(HttpServletRequest request);

    Map<String, Object> insertDetailAndAddOrders4Frist_impl(HttpServletRequest request);

    Map<String, Object> toCenterDetailByParentId_impl(HttpServletRequest request,String secondInquirySwitch);

    Map<String, Object> createMemorandInUniting_impl(String type, long ordersid, String fileName, String r_path, long purchaseid, String path);

    Map<String, Object> createOrdersValidation_impl(String type, long id, String fileName, String paths, PurchaseOrderDetailVo purchaseOrderDetailVo, String path);

    List<PurchaseOrderDetailVo> selectmemorInUniting(Long P_orderId);

    List<PurchaseOrders> selectpurchaseOrdersByUserbycreate(long userId, String type);

    void updateById(String type, long id,long c_userid);
}
